import Vue from 'vue'
import fly from '@/server/request'
import store from '@/store'
import App from '@/App'
import MpvueRouterPatch from 'mpvue-router-patch'
import './assets/style/index.scss'

Vue.config.productionTip = false
Vue.prototype.$http = fly
Vue.prototype.$store = store
Vue.use(MpvueRouterPatch)

const app = new Vue({
  store,
  ...App
})
app.$mount()
export default {
  config: {
    'pages': [
    ],
    'window': {
      'backgroundTextStyle': 'dark',
      'navigationBarBackgroundColor': '#fff',
      'navigationBarTitleText': '小程序',
      'navigationBarTextStyle': 'black'
    },
    'tabBar': {
      'backgroundColor': '#fafafa',
      'borderStyle': 'white',
      'selectedColor': '#b4282d',
      'color': '666',
      'list': [
        {
          'pagePath': 'pages/index/index',
          'iconPath': 'static/images/ic_menu_choice_nor.png',
          'selectedIconPath': 'static/images/ic_menu_choice_pressed.png',
          'text': '首页'
        },
        {
          'pagePath': 'pages/demo/index',
          'iconPath': 'static/images/ic_menu_topic_nor.png',
          'selectedIconPath': 'static/images/ic_menu_topic_pressed.png',
          'text': '测试'
        }
      ]
    }
  },
  'networkTimeout': {
    'request': 10000,
    'downloadFile': 10000
  },
  'debug': true
}
